package models

import "time"

// 会员收入
type UserIncome struct {
	Id                int64              `orm:"description(自增主键)"`
	User              *User              `orm:"null;default(0);rel(fk);description(会员id)"`
	FromUser          *User              `orm:"null;default(0);rel(fk);description(收入来源会员id)"`
	PapPayApplyRecord *PapPayApplyRecord `orm:"null;default(0);rel(fk);description(收入来源会员扣款记录id)"`
	Amount            float64            `orm:"digits(12);decimals(2);description(收入金额)"`
	CreatedDate       time.Time          `orm:"auto_now_add;type(date);description(创建日期)"`
	Created           time.Time          `orm:"auto_now_add;type(datetime);description(创建时间)"`
	CreatedShow       string             `orm:"-"`
	CreatedShowDate   string             `orm:"-"`
}
